<%--
  Created by IntelliJ IDEA.
  User: one
  Date: 2024/9/8
  Time: 下午3:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>最简单的Spring MVC程序</title>
</head>
<body>
 内容：${message}

<form method="post" action="${pageContext.request.contextPath}/complexPojo">
    订单id：<input type="text" name="id">
    用户id：<input type="text" name="user.id">
    用户名：<input type="text" name="user.username">
    密码：<input  type="password" name="user.password">
    <input type="submit">
</form>

 数组绑定测试：
<form method="post" action="${pageContext.request.contextPath}/array">
    张三：<input type="checkbox" name="id" value="1"><br/>
    李四：<input type="checkbox" name="id" value="2"><br/>
    王五：<input type="checkbox" name="id" value="3"><br/>
    赵六：<input type="checkbox" name="id" value="4"><br/>
    <input type="submit">
</form>

 列表绑定测试：
<form method="post" action="${pageContext.request.contextPath}/list">
    张三：<input type="checkbox" name="id" value="1"><br/>
    李四：<input type="checkbox" name="id" value="2"><br/>
    王五：<input type="checkbox" name="id" value="3"><br/>
    赵六：<input type="checkbox" name="id" value="4"><br/>
    <input type="submit">
</form>
</body>
</html>
